//
//  DbUtility.h
//  MarketDataAnalyzer
//
//  Created by jiro on 10/01/24.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "libpq-fe.h"

@interface DbUtility : NSObject {

}

+ (NSString*) convertIsoStdDateStringToCocoaDateString: (NSString*) s;

+ (NSDate*) convertIsoStdDateStringToNSDate: (NSString*) s;
+ (NSDate*) convertIsoStdDateCStringToNSDate: (const char*) s;

+ (double) parseAsDouble: (PGresult*) res atRowIndex: (int) rowIndex andColumnIndex: (int) colIndex;

+ (double) parseAsDouble: (const char*) s;

+ (NSDate*) parseAsNSDate: (const char*) s;

@end
